package com.frxuexi.park2303.user

import com.frxuexi.base.entity.ParkBeanItem
import com.frxuexi.base.mvi.IUiIntent

sealed class UserIntent:IUiIntent {
    data class register(val uname:String,val pwd:String):UserIntent()
    data class login(val uname:String,val pwd:String):UserIntent()

    data object getParkByType:UserIntent()
    data class getVisitByName(val uname: String):UserIntent()
    data class getRepairByName(val uname:String):UserIntent()
    data class getPatrolByUid(val uid:Int):UserIntent()

    data class updatePark(val id:Int,val item:ParkBeanItem):UserIntent()

    data object getVisits:UserIntent()

    data class approveVisit(val id:Int):UserIntent()
    data class rejectVisit(val id: Int):UserIntent()

    data object getNews:UserIntent()

}